package com.woniu.user.service.impl;

import com.woniu.user.pojo.PickAddress;
import com.woniu.user.mapper.PickAddressMapper;
import com.woniu.user.service.IPickAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 收货地址表 服务实现类
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
@Service
public class PickAddressServiceImpl extends ServiceImpl<PickAddressMapper, PickAddress> implements IPickAddressService {

    @Autowired(required = false)
    private PickAddressMapper pickAddressMapper;


    @Override
    public List<PickAddress> queryAll(String username) {
        return pickAddressMapper.selectAllByUsername(username);
    }
}
